package com.seckill.service.impl;

import com.seckill.mapper.SuccessKilledMapper;
import com.seckill.service.SuccessKilledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: hualao
 * @Version: 0.0.1V
 * @Date: 2019/1/24
 * @Description: 秒杀成功信息
 **/
@Service
public class SuccessKilledServiceImpl implements SuccessKilledService {

    @Autowired
    private SuccessKilledMapper successKilledMapper;

    @Override
    public int deleteBySeckillId(long seckillId) {
        return successKilledMapper.deleteBySeckillId(seckillId);
    }


    @Override
    public int successCount(long seckillId) {
        return successKilledMapper.countBySeckillId(seckillId);
    }
}
